<script setup lang="ts">
import * as e from 'echarts';
import { onMounted } from 'vue';
onMounted(()=>{
let myChart=e.init(document.getElementById('mn'));
myChart.setOption({
  title: {
    text: '数据',
    textStyle:{
        color:'white'
    }
  },
  lengend:{
    show:true,
    left:'auto',
    right:'auto',
    top:'auto',
    buttom:'auto'
  },
  tooltip: {},
  xAxis: {
    data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子']
  },
  yAxis: {
    show:false
  },
  series: [
    {
      name: '销量',
      type: 'bar',
      data: [5, 20, 36, 10, 10, 20]
    }
  ]
});
window.onresize=()=>{
    myChart.resize();
}
})

</script>
<template>
    <div class="Box">
<div id="mn"></div>
    </div>
    
</template>
<style scoped>
.Box{
  background-image: url(../../images/Bkuang.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
#mn{
  height: 100%;
}</style>